'use strict';

module.exports = appInfo => {
  const config = exports = {};

  // use for cookie sign key, should change to your own and keep security
  config.keys = appInfo.name + '_1510912367447_8165';

  // add your config here
  config.middleware = [];

  config.mongoose = {
    url: 'mongodb://120.77.247.66:27001/yto',
    options: {
      user: 'yto',
      pass: 'Yto@2017'
    }
  }

  config.oAuth2Server = {
    debug: true,
    grants: ['password']
  }

  return config;
};